<?php if ($sf_user->isAuthenticated()): ?>
  <div id="menu">
    <ul>
      <li><?php echo link_to(__('Logout'), '@sf_guard_signout') ?></li>
    </ul>
  </div>
<?php endif; ?>
